package com.guard.helper;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class StringHelper {

    public static List<String> getLinesList(String response) {
        List<String> lines = new ArrayList<String>();

        try {
            Scanner in = new Scanner(response);
            while (in.hasNext()) {
                lines.add(in.nextLine());
            }
            in.close();
        } catch (IllegalStateException exception) {

        }
        return lines;
    }

}
